x86: reserve pages when SandyBridge integrated graphics
authorXudong Hao <xudong.hao@intel.com>
Tue, 26 Mar 2013 13:22:07 +0000 (14:22 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 26 Mar 2013 13:22:07 +0000 (14:22 +0100)
commitdb537fe3023bf157b85c8246782cb72a6f989b31
tree552d8ac07bffa0e516a260b8c2f74d9a58aaeb09
parentbabea0a412ee24a94ed0bd03543060b2c6bc0bbd
x86: reserve pages when SandyBridge integrated graphics

SNB graphics devices have a bug that prevent them from accessing certain
memory ranges, namely anything below 1M and in the pages listed in the
table.

Xen does not initialize below 1MB to heap, i.e. below 1MB pages don't be
allocated, so it's unnecessary to reserve memory below the 1 MB mark
that has not already been reserved.

So reserve those pages listed in the table at xen boot if set detect a
SNB gfx device on the CPU to avoid GPU hangs.

Signed-off-by: Xudong Hao <xudong.hao@intel.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/arch/x86/mm.c
xen/common/page_alloc.c
xen/drivers/passthrough/vtd/quirks.c
xen/include/asm-x86/mm.h
xen/include/asm-x86/pci.h